package fr.jade.fraclite.orb.names;

import fr.jade.fraclite.orb.api.Binder;

public class JGroupsName extends AbstractName {
  
  private static final long serialVersionUID = 1L;
  
  protected String groupId;
  
  public JGroupsName(long itfId, String signature, Binder naming, String groupId){
    super(itfId, signature, naming);
    this.groupId = groupId;
  }
  
  public String getGroupId() {
    return groupId;
  }

  @Override
  public boolean equals(Object o){
    if(o instanceof JGroupsName){
      return super.equals(o) &&
             ((JGroupsName)o).getGroupId().equals(groupId);
    }else{
      return false;
    }
  }
}
